//1.需求：去除字符串首尾空格
//2.下载第三方包  npm i trim
//3.引入   require("包名")
const t = require("trim");

console.log("|" + t("      hello world      ") + "|");
console.log("|" + t.left("      hello world      ") + "|");
console.log("|" + t.right("      hello world     ") + "|");